package com.indexingsystem.boss.entity;

import java.util.ArrayList;
import java.util.List;

public class ResourceUpdateRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ResourceUpdateRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andResourceUpdateRecordIdIsNull() {
            addCriterion("resource_update_record_id is null");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdIsNotNull() {
            addCriterion("resource_update_record_id is not null");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdEqualTo(String value) {
            addCriterion("resource_update_record_id =", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdNotEqualTo(String value) {
            addCriterion("resource_update_record_id <>", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdGreaterThan(String value) {
            addCriterion("resource_update_record_id >", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdGreaterThanOrEqualTo(String value) {
            addCriterion("resource_update_record_id >=", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdLessThan(String value) {
            addCriterion("resource_update_record_id <", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdLessThanOrEqualTo(String value) {
            addCriterion("resource_update_record_id <=", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdLike(String value) {
            addCriterion("resource_update_record_id like", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdNotLike(String value) {
            addCriterion("resource_update_record_id not like", value, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdIn(List<String> values) {
            addCriterion("resource_update_record_id in", values, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdNotIn(List<String> values) {
            addCriterion("resource_update_record_id not in", values, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdBetween(String value1, String value2) {
            addCriterion("resource_update_record_id between", value1, value2, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceUpdateRecordIdNotBetween(String value1, String value2) {
            addCriterion("resource_update_record_id not between", value1, value2, "resourceUpdateRecordId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdIsNull() {
            addCriterion("resource_category_id is null");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdIsNotNull() {
            addCriterion("resource_category_id is not null");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdEqualTo(String value) {
            addCriterion("resource_category_id =", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdNotEqualTo(String value) {
            addCriterion("resource_category_id <>", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdGreaterThan(String value) {
            addCriterion("resource_category_id >", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdGreaterThanOrEqualTo(String value) {
            addCriterion("resource_category_id >=", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdLessThan(String value) {
            addCriterion("resource_category_id <", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdLessThanOrEqualTo(String value) {
            addCriterion("resource_category_id <=", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdLike(String value) {
            addCriterion("resource_category_id like", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdNotLike(String value) {
            addCriterion("resource_category_id not like", value, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdIn(List<String> values) {
            addCriterion("resource_category_id in", values, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdNotIn(List<String> values) {
            addCriterion("resource_category_id not in", values, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdBetween(String value1, String value2) {
            addCriterion("resource_category_id between", value1, value2, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResourceCategoryIdNotBetween(String value1, String value2) {
            addCriterion("resource_category_id not between", value1, value2, "resourceCategoryId");
            return (Criteria) this;
        }

        public Criteria andResIdIsNull() {
            addCriterion("res_id is null");
            return (Criteria) this;
        }

        public Criteria andResIdIsNotNull() {
            addCriterion("res_id is not null");
            return (Criteria) this;
        }

        public Criteria andResIdEqualTo(String value) {
            addCriterion("res_id =", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdNotEqualTo(String value) {
            addCriterion("res_id <>", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdGreaterThan(String value) {
            addCriterion("res_id >", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdGreaterThanOrEqualTo(String value) {
            addCriterion("res_id >=", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdLessThan(String value) {
            addCriterion("res_id <", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdLessThanOrEqualTo(String value) {
            addCriterion("res_id <=", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdLike(String value) {
            addCriterion("res_id like", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdNotLike(String value) {
            addCriterion("res_id not like", value, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdIn(List<String> values) {
            addCriterion("res_id in", values, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdNotIn(List<String> values) {
            addCriterion("res_id not in", values, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdBetween(String value1, String value2) {
            addCriterion("res_id between", value1, value2, "resId");
            return (Criteria) this;
        }

        public Criteria andResIdNotBetween(String value1, String value2) {
            addCriterion("res_id not between", value1, value2, "resId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdIsNull() {
            addCriterion("res_type_id is null");
            return (Criteria) this;
        }

        public Criteria andResTypeIdIsNotNull() {
            addCriterion("res_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andResTypeIdEqualTo(String value) {
            addCriterion("res_type_id =", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdNotEqualTo(String value) {
            addCriterion("res_type_id <>", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdGreaterThan(String value) {
            addCriterion("res_type_id >", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("res_type_id >=", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdLessThan(String value) {
            addCriterion("res_type_id <", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdLessThanOrEqualTo(String value) {
            addCriterion("res_type_id <=", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdLike(String value) {
            addCriterion("res_type_id like", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdNotLike(String value) {
            addCriterion("res_type_id not like", value, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdIn(List<String> values) {
            addCriterion("res_type_id in", values, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdNotIn(List<String> values) {
            addCriterion("res_type_id not in", values, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdBetween(String value1, String value2) {
            addCriterion("res_type_id between", value1, value2, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTypeIdNotBetween(String value1, String value2) {
            addCriterion("res_type_id not between", value1, value2, "resTypeId");
            return (Criteria) this;
        }

        public Criteria andResTableIsNull() {
            addCriterion("res_table is null");
            return (Criteria) this;
        }

        public Criteria andResTableIsNotNull() {
            addCriterion("res_table is not null");
            return (Criteria) this;
        }

        public Criteria andResTableEqualTo(String value) {
            addCriterion("res_table =", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableNotEqualTo(String value) {
            addCriterion("res_table <>", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableGreaterThan(String value) {
            addCriterion("res_table >", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableGreaterThanOrEqualTo(String value) {
            addCriterion("res_table >=", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableLessThan(String value) {
            addCriterion("res_table <", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableLessThanOrEqualTo(String value) {
            addCriterion("res_table <=", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableLike(String value) {
            addCriterion("res_table like", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableNotLike(String value) {
            addCriterion("res_table not like", value, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableIn(List<String> values) {
            addCriterion("res_table in", values, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableNotIn(List<String> values) {
            addCriterion("res_table not in", values, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableBetween(String value1, String value2) {
            addCriterion("res_table between", value1, value2, "resTable");
            return (Criteria) this;
        }

        public Criteria andResTableNotBetween(String value1, String value2) {
            addCriterion("res_table not between", value1, value2, "resTable");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdIsNull() {
            addCriterion("super_category_id is null");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdIsNotNull() {
            addCriterion("super_category_id is not null");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdEqualTo(String value) {
            addCriterion("super_category_id =", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdNotEqualTo(String value) {
            addCriterion("super_category_id <>", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdGreaterThan(String value) {
            addCriterion("super_category_id >", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdGreaterThanOrEqualTo(String value) {
            addCriterion("super_category_id >=", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdLessThan(String value) {
            addCriterion("super_category_id <", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdLessThanOrEqualTo(String value) {
            addCriterion("super_category_id <=", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdLike(String value) {
            addCriterion("super_category_id like", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdNotLike(String value) {
            addCriterion("super_category_id not like", value, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdIn(List<String> values) {
            addCriterion("super_category_id in", values, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdNotIn(List<String> values) {
            addCriterion("super_category_id not in", values, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdBetween(String value1, String value2) {
            addCriterion("super_category_id between", value1, value2, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andSuperCategoryIdNotBetween(String value1, String value2) {
            addCriterion("super_category_id not between", value1, value2, "superCategoryId");
            return (Criteria) this;
        }

        public Criteria andOperatedateIsNull() {
            addCriterion("operatedate is null");
            return (Criteria) this;
        }

        public Criteria andOperatedateIsNotNull() {
            addCriterion("operatedate is not null");
            return (Criteria) this;
        }

        public Criteria andOperatedateEqualTo(String value) {
            addCriterion("operatedate =", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateNotEqualTo(String value) {
            addCriterion("operatedate <>", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateGreaterThan(String value) {
            addCriterion("operatedate >", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateGreaterThanOrEqualTo(String value) {
            addCriterion("operatedate >=", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateLessThan(String value) {
            addCriterion("operatedate <", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateLessThanOrEqualTo(String value) {
            addCriterion("operatedate <=", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateLike(String value) {
            addCriterion("operatedate like", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateNotLike(String value) {
            addCriterion("operatedate not like", value, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateIn(List<String> values) {
            addCriterion("operatedate in", values, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateNotIn(List<String> values) {
            addCriterion("operatedate not in", values, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateBetween(String value1, String value2) {
            addCriterion("operatedate between", value1, value2, "operatedate");
            return (Criteria) this;
        }

        public Criteria andOperatedateNotBetween(String value1, String value2) {
            addCriterion("operatedate not between", value1, value2, "operatedate");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(String value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(String value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(String value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(String value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(String value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLike(String value) {
            addCriterion("state like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotLike(String value) {
            addCriterion("state not like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<String> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<String> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(String value1, String value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(String value1, String value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}